package com.liuweiheng.springcloud.service;

import com.liuweiheng.base.entity.R;
import com.liuweiheng.cloudproviderpayment8002.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Feign接口
 * 远程调用Payment-8002服务接口
 *
 * @author lwh
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    /**
     * 测试Feign调用接口
     * @return 成功信息
     */
    @GetMapping("/payment/feign/test")
    R testFeign();

    /**
     * 测试Feign调用接口超时
     * @return 返回对象
     */
    @GetMapping("/payment/feign/timeout")
    R testTimeout();

    /**
     * 测试工具
     * @return 返回对象
     */
    @GetMapping("/payment/test/checkUtil")
    R checkUtil();

}
